package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.EmailRuleConfigurationCreateValidate;
import com.mdd.admin.validate.EmailRuleConfigurationUpdateValidate;
import com.mdd.admin.validate.EmailRuleConfigurationSearchValidate;
import com.mdd.admin.vo.EmailRuleConfigurationListedVo;
import com.mdd.admin.vo.EmailRuleConfigurationDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 规则邮箱配置服务接口类
 * @author LikeAdmin
 */
public interface IEmailRuleConfigurationService {

    /**
     * 规则邮箱配置列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<EmailRuleConfigurationListedVo>
     */
    PageResult<EmailRuleConfigurationListedVo> list(PageValidate pageValidate, EmailRuleConfigurationSearchValidate searchValidate);

    /**
     * 规则邮箱配置详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return EmailRuleConfigurationDetailVo
     */
    EmailRuleConfigurationDetailVo detail(Integer id);

    /**
     * 规则邮箱配置新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(EmailRuleConfigurationCreateValidate createValidate);

    /**
     * 规则邮箱配置编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(EmailRuleConfigurationUpdateValidate updateValidate);

    /**
     * 规则邮箱配置删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
